package org.example.reggie.controller;

import lombok.extern.slf4j.Slf4j;
import org.example.reggie.common.R;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 点菜
 */
@Slf4j
@Transactional
@RestController
@RequestMapping("/order")
public class OrdersController {

    @GetMapping("/userPage")
    public R<String> userPage(int page,int pageSize,String name){
        log.info("page {},pageSize {},name {}",page,pageSize,name);
        return R.success("用户分页");
    }
}
